<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>SmartphoneBrainScanner2: /Users/arks/google_code_sbs2/smartphonebrainscanner2/core/src/sbs2datahandler.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="sbs2_icon.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">SmartphoneBrainScanner2
   </div>
   <div id="projectbrief">A framework for building cross-platform real-time EEG applications. http://code.google.com/p/smartphonebrainscanner2/</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.1.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('sbs2datahandler_8h.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Groups</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">sbs2datahandler.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="preprocessor">#ifndef SBS2DATAHANDLER_H</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define SBS2DATAHANDLER_H</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor">#include &lt;QObject&gt;</span></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="preprocessor">#include &lt;sbs2networkhandler.h&gt;</span></div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="preprocessor">#include &lt;sbs2filter.h&gt;</span></div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor">#include &lt;sbs2packet.h&gt;</span></div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="preprocessor">#include &lt;sbs2common.h&gt;</span></div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="preprocessor">#include &lt;sbs2filehandler.h&gt;</span></div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="preprocessor">#include &lt;sbs2spectrogram.h&gt;</span></div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor">#include &lt;sbs2sourcereconstruction.h&gt;</span></div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="preprocessor">#include &lt;QtCore&gt;</span></div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="keyword">class </span><a class="code" href="class_sbs2_network_handler.html">Sbs2NetworkHandler</a>;</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;</div>
<div class="line"><a name="l00039"></a><span class="lineno"><a class="code" href="class_sbs2_data_handler.html">   39</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_sbs2_data_handler.html">Sbs2DataHandler</a> : <span class="keyword">public</span> QObject</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;{</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;    Q_OBJECT</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;    <span class="keyword">explicit</span> <a class="code" href="class_sbs2_data_handler.html#a7ba4fb90e961ec8ff8958b271a6e746c">Sbs2DataHandler</a>(QObject *parent = 0);</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;    <a class="code" href="class_sbs2_data_handler.html#aaa08ce6949d3a979b9048fcdc280728e">~Sbs2DataHandler</a>();</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;    </div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;    <span class="comment">//filtering</span></div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_sbs2_data_handler.html#adc6eccfe43b0759c5d4bc248b289e670">filter</a>();</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;    <span class="comment">//recording</span></div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_sbs2_data_handler.html#a06ec994f323602e812cb548e6d78fddd">record</a>();</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;    <span class="keyword">virtual</span> QString <a class="code" href="class_sbs2_data_handler.html#a4f429e3eab9329e386004e581eed5169">getRawFilename</a>();</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;    <span class="comment">//spectrogram</span></div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_sbs2_data_handler.html#a97bb167202da122efccbce7566178645">spectrogramChannel</a>();</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;    <span class="comment">//source reconstruction</span></div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_sbs2_data_handler.html#a9d89740ccb8d8b83d8ad7cff5b9286aa">sourceReconstruction</a>();</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_sbs2_data_handler.html#ae2a8a68a075818a9f058eae1003cbe6d">sourceReconstructionPower</a>();</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;    <span class="comment">//network</span></div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_sbs2_data_handler.html#a523f8b5ffae2d11005196e4f7b39d1c5">sendRawData</a>();</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;    <span class="comment">//access</span></div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;    <a class="code" href="class_d_t_u_1_1_dtu_array2_d.html">DTU::DtuArray2D&lt;double&gt;</a>* <a class="code" href="class_sbs2_data_handler.html#ace19ab4328535ed1929417d7079047ad">getPowerValues</a>();</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;    <a class="code" href="class_d_t_u_1_1_dtu_array2_d.html">DTU::DtuArray2D&lt;double&gt;</a>* <a class="code" href="class_sbs2_data_handler.html#a2b3f3503560aa98b939cd2fd4e40aeef">getSourceReconstructionPowerValues</a>();</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;<span class="keyword">protected</span>:</div>
<div class="line"><a name="l00068"></a><span class="lineno"><a class="code" href="class_sbs2_data_handler.html#a283d44a7f76c0943073e4b1e1f3a47e0">   68</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="class_sbs2_data_handler.html#a283d44a7f76c0943073e4b1e1f3a47e0">samplesCollected</a>;</div>
<div class="line"><a name="l00069"></a><span class="lineno"><a class="code" href="class_sbs2_data_handler.html#a7978367be1b4e77d29bd070749f9b90b">   69</a></span>&#160;    <a class="code" href="class_sbs2_packet.html">Sbs2Packet</a>* <a class="code" href="class_sbs2_data_handler.html#a7978367be1b4e77d29bd070749f9b90b">thisPacket</a>;</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;    <span class="comment">//filtering</span></div>
<div class="line"><a name="l00073"></a><span class="lineno"><a class="code" href="class_sbs2_data_handler.html#ac98441bbba779fc5d545b91fff4fe4af">   73</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="class_sbs2_data_handler.html#ac98441bbba779fc5d545b91fff4fe4af">filterOn</a>;</div>
<div class="line"><a name="l00074"></a><span class="lineno"><a class="code" href="class_sbs2_data_handler.html#a3950a87e3197897c454f36a6e0cbe0c2">   74</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="class_sbs2_data_handler.html#a3950a87e3197897c454f36a6e0cbe0c2">filterOrder</a>;</div>
<div class="line"><a name="l00075"></a><span class="lineno"><a class="code" href="class_sbs2_data_handler.html#aa151649a496b0c6fb4fff0504de0cb84">   75</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="class_sbs2_data_handler.html#aa151649a496b0c6fb4fff0504de0cb84">fbandLow</a>;</div>
<div class="line"><a name="l00076"></a><span class="lineno"><a class="code" href="class_sbs2_data_handler.html#a97a3294b785f95342192060884b7a51f">   76</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="class_sbs2_data_handler.html#a97a3294b785f95342192060884b7a51f">fbandHigh</a>;</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;        <span class="comment">//objects</span></div>
<div class="line"><a name="l00078"></a><span class="lineno"><a class="code" href="class_sbs2_data_handler.html#ab4ff2034bf7974feac4655767ffb2f06">   78</a></span>&#160;    <a class="code" href="class_sbs2_filter.html">Sbs2Filter</a>* <a class="code" href="class_sbs2_data_handler.html#ab4ff2034bf7974feac4655767ffb2f06">sbs2Filter</a>;</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;        <span class="comment">//data matrices</span></div>
<div class="line"><a name="l00080"></a><span class="lineno"><a class="code" href="class_sbs2_data_handler.html#a945b3c5c16c586b7ea7c3fa2a61f1314">   80</a></span>&#160;    <a class="code" href="class_d_t_u_1_1_dtu_array2_d.html">DTU::DtuArray2D&lt;double&gt;</a>* <a class="code" href="class_sbs2_data_handler.html#a945b3c5c16c586b7ea7c3fa2a61f1314">toFilterValues</a>;</div>
<div class="line"><a name="l00081"></a><span class="lineno"><a class="code" href="class_sbs2_data_handler.html#ab59d6276b75e1b28c622cfd013c8cf8d">   81</a></span>&#160;    <a class="code" href="class_d_t_u_1_1_dtu_array2_d.html">DTU::DtuArray2D&lt;double&gt;</a>* <a class="code" href="class_sbs2_data_handler.html#ab59d6276b75e1b28c622cfd013c8cf8d">filterResultValues</a>;</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;    <span class="comment">//recording</span></div>
<div class="line"><a name="l00084"></a><span class="lineno"><a class="code" href="class_sbs2_data_handler.html#ae6505076adb777fb2786f5cf1cc4caa5">   84</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="class_sbs2_data_handler.html#ae6505076adb777fb2786f5cf1cc4caa5">recording</a>;</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;        <span class="comment">//objects</span></div>
<div class="line"><a name="l00086"></a><span class="lineno"><a class="code" href="class_sbs2_data_handler.html#a21a05a8191f99d973e03949016cc6362">   86</a></span>&#160;    <a class="code" href="class_sbs2_file_handler.html">Sbs2FileHandler</a>* <a class="code" href="class_sbs2_data_handler.html#a21a05a8191f99d973e03949016cc6362">sbs2FileHandler</a>;</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;    <span class="comment">//spectral analysis</span></div>
<div class="line"><a name="l00090"></a><span class="lineno"><a class="code" href="class_sbs2_data_handler.html#a6aec777856b21566fc7c1c239bc01a6e">   90</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="class_sbs2_data_handler.html#a6aec777856b21566fc7c1c239bc01a6e">spectrogramChannelOn</a>;</div>
<div class="line"><a name="l00091"></a><span class="lineno"><a class="code" href="class_sbs2_data_handler.html#ae19dc07959f3dfedbdd020c8ecaa1b20">   91</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="class_sbs2_data_handler.html#ae19dc07959f3dfedbdd020c8ecaa1b20">spectrogramChannelSamples</a>; <span class="comment">//on how many samples perform spectrogram</span></div>
<div class="line"><a name="l00092"></a><span class="lineno"><a class="code" href="class_sbs2_data_handler.html#aac9d4579ad6b4d84e205ccf834bccf79">   92</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="class_sbs2_data_handler.html#aac9d4579ad6b4d84e205ccf834bccf79">spectrogramChannelLength</a>; <span class="comment">//freq, 128 for emotiv</span></div>
<div class="line"><a name="l00093"></a><span class="lineno"><a class="code" href="class_sbs2_data_handler.html#a2ca4e80598926e06fb224c985a0000f1">   93</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="class_sbs2_data_handler.html#a2ca4e80598926e06fb224c985a0000f1">spectrogramChannelDelta</a>;    <span class="comment">//distance between spectrograms</span></div>
<div class="line"><a name="l00094"></a><span class="lineno"><a class="code" href="class_sbs2_data_handler.html#a5f13f58b4c6fc3ef242c49526f632fb5">   94</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="class_sbs2_data_handler.html#a5f13f58b4c6fc3ef242c49526f632fb5">spectrogramChannelDeltaCollected</a>; <span class="comment">//how many samples already collected</span></div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;        <span class="comment">//objects</span></div>
<div class="line"><a name="l00096"></a><span class="lineno"><a class="code" href="class_sbs2_data_handler.html#a8f10be73e5dcf79ee2b17dc25b8c3ad3">   96</a></span>&#160;    <a class="code" href="class_sbs2_spectrogram.html">Sbs2Spectrogram</a>* <a class="code" href="class_sbs2_data_handler.html#a8f10be73e5dcf79ee2b17dc25b8c3ad3">sbs2Spectrogram</a>;</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;        <span class="comment">//data matrices</span></div>
<div class="line"><a name="l00098"></a><span class="lineno"><a class="code" href="class_sbs2_data_handler.html#a2e2a930ac63df2480e02bfc2cc2d9c56">   98</a></span>&#160;    <a class="code" href="class_d_t_u_1_1_dtu_array2_d.html">DTU::DtuArray2D&lt;double&gt;</a>* <a class="code" href="class_sbs2_data_handler.html#a2e2a930ac63df2480e02bfc2cc2d9c56">toSpectrogramValues</a>;</div>
<div class="line"><a name="l00099"></a><span class="lineno"><a class="code" href="class_sbs2_data_handler.html#a71fb5afb898d4998d271c6812d3b13bc">   99</a></span>&#160;    <a class="code" href="class_d_t_u_1_1_dtu_array2_d.html">DTU::DtuArray2D&lt;double&gt;</a>* <a class="code" href="class_sbs2_data_handler.html#a71fb5afb898d4998d271c6812d3b13bc">spectrogramValues</a>;</div>
<div class="line"><a name="l00100"></a><span class="lineno"><a class="code" href="class_sbs2_data_handler.html#a2e654257d666ee18603aa21ce4fc0094">  100</a></span>&#160;    <a class="code" href="class_d_t_u_1_1_dtu_array2_d.html">DTU::DtuArray2D&lt;double&gt;</a>* <a class="code" href="class_sbs2_data_handler.html#a2e654257d666ee18603aa21ce4fc0094">powerValues</a>;</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;    <span class="comment">//source reconstruction</span></div>
<div class="line"><a name="l00104"></a><span class="lineno"><a class="code" href="class_sbs2_data_handler.html#ac39dd9d7e16c5483c9c8264ab9fe3583">  104</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="class_sbs2_data_handler.html#ac39dd9d7e16c5483c9c8264ab9fe3583">sourceReconstructionOn</a>;</div>
<div class="line"><a name="l00105"></a><span class="lineno"><a class="code" href="class_sbs2_data_handler.html#a7757c795a7a1e7c264d96d5e2c575375">  105</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="class_sbs2_data_handler.html#a7757c795a7a1e7c264d96d5e2c575375">sourceReconstructionPowerOn</a>;</div>
<div class="line"><a name="l00106"></a><span class="lineno"><a class="code" href="class_sbs2_data_handler.html#a27824cd8b891d39371317f6b71734bb9">  106</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="class_sbs2_data_handler.html#a27824cd8b891d39371317f6b71734bb9">isSourceReconstructionReady</a>;</div>
<div class="line"><a name="l00107"></a><span class="lineno"><a class="code" href="class_sbs2_data_handler.html#a040c1f1987d1aedd9fc4fa0bb032793c">  107</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="class_sbs2_data_handler.html#a040c1f1987d1aedd9fc4fa0bb032793c">sourceReconstructionSamples</a>;</div>
<div class="line"><a name="l00108"></a><span class="lineno"><a class="code" href="class_sbs2_data_handler.html#a518bfd8fdb83c367de2aad22d941e237">  108</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="class_sbs2_data_handler.html#a518bfd8fdb83c367de2aad22d941e237">sourceReconstructionDelta</a>;</div>
<div class="line"><a name="l00109"></a><span class="lineno"><a class="code" href="class_sbs2_data_handler.html#a9252e8ca95c93cf6040872fc63e5be2a">  109</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="class_sbs2_data_handler.html#a9252e8ca95c93cf6040872fc63e5be2a">sourceReconstructionDeltaCollected</a>;</div>
<div class="line"><a name="l00110"></a><span class="lineno"><a class="code" href="class_sbs2_data_handler.html#a8fd8e83392c3e765248a1159ea7ab4f0">  110</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="class_sbs2_data_handler.html#a8fd8e83392c3e765248a1159ea7ab4f0">sourceReconstructionModelUpdateLength</a>;</div>
<div class="line"><a name="l00111"></a><span class="lineno"><a class="code" href="class_sbs2_data_handler.html#ab73812b83ec8bf91093d35c706a524bc">  111</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="class_sbs2_data_handler.html#ab73812b83ec8bf91093d35c706a524bc">sourceReconstructionModelUpdateDelta</a>;</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;        <span class="comment">//objects</span></div>
<div class="line"><a name="l00113"></a><span class="lineno"><a class="code" href="class_sbs2_data_handler.html#a0abbfecc3788aca2ff82272d86063cac">  113</a></span>&#160;    <a class="code" href="class_sbs2_source_reconstrucion.html">Sbs2SourceReconstrucion</a>* <a class="code" href="class_sbs2_data_handler.html#a0abbfecc3788aca2ff82272d86063cac">sbs2SourceReconstruction</a>;</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;        <span class="comment">//data matrices</span></div>
<div class="line"><a name="l00115"></a><span class="lineno"><a class="code" href="class_sbs2_data_handler.html#a85ec29b438414d29f31b7c2d894155db">  115</a></span>&#160;    <a class="code" href="class_d_t_u_1_1_dtu_array2_d.html">DTU::DtuArray2D&lt;double&gt;</a>* <a class="code" href="class_sbs2_data_handler.html#a85ec29b438414d29f31b7c2d894155db">toSourceReconstructionValues</a>;</div>
<div class="line"><a name="l00116"></a><span class="lineno"><a class="code" href="class_sbs2_data_handler.html#a74adbe08c28c63df93c29f7ceeaac938">  116</a></span>&#160;    <a class="code" href="class_d_t_u_1_1_dtu_array2_d.html">DTU::DtuArray2D&lt;double&gt;</a>* <a class="code" href="class_sbs2_data_handler.html#a74adbe08c28c63df93c29f7ceeaac938">sourceReconstructionValues</a>;</div>
<div class="line"><a name="l00117"></a><span class="lineno"><a class="code" href="class_sbs2_data_handler.html#ad183989735a5aeec539f12dccf28cd9f">  117</a></span>&#160;    <a class="code" href="class_d_t_u_1_1_dtu_array2_d.html">DTU::DtuArray2D&lt;double&gt;</a>* <a class="code" href="class_sbs2_data_handler.html#ad183989735a5aeec539f12dccf28cd9f">sourceReconstructionPowerValues</a>;</div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;    <span class="comment">//network</span></div>
<div class="line"><a name="l00122"></a><span class="lineno"><a class="code" href="class_sbs2_data_handler.html#adc249819610b0d1fe352e882d842c36a">  122</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="class_sbs2_data_handler.html#adc249819610b0d1fe352e882d842c36a">networkSendRawDataOn</a>;</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;        <span class="comment">//objects</span></div>
<div class="line"><a name="l00124"></a><span class="lineno"><a class="code" href="class_sbs2_data_handler.html#a5bc26d06be4b58f25ec0b88b27773fb0">  124</a></span>&#160;    <a class="code" href="class_sbs2_network_handler.html">Sbs2NetworkHandler</a>* <a class="code" href="class_sbs2_data_handler.html#a5bc26d06be4b58f25ec0b88b27773fb0">sbs2NetworkHandler</a>;</div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;</div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;<span class="keyword">protected</span>:</div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_sbs2_data_handler.html#a065dfd6e24bca97f2ca0958911b06f96">reset</a>();</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;</div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;signals:</div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_sbs2_data_handler.html#a6b044b68ab3c078889461095ae68b6a6">spectrogramUpdated</a>();</div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_sbs2_data_handler.html#acfa19e08cc3317e782b945cd7d3adcbc">sourceReconstructionReady</a>();</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_sbs2_data_handler.html#a6fbc9ef6ad70adc6bd0195feefb70919">sourceReconstructionPowerReady</a>();</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_sbs2_data_handler.html#a1af8becf1c88098783238e1d4d9fa8f2">setWindowTypeSignal</a>(<a class="code" href="class_sbs2_spectrogram.html#a22265347883488b8385c83b67882d915">Sbs2Spectrogram::WindowType</a> windowType);</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_sbs2_data_handler.html#a504ee9abc91fb5b7cec62c1eaedc6d92">udpMessageReceived</a>(QString data, QString sender, <span class="keywordtype">int</span> port);</div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;</div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;<span class="keyword">public</span> slots:</div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_sbs2_data_handler.html#a0f7ac4379cc87dc4f84b764e810a2428">setThisPacket</a>(<a class="code" href="class_sbs2_packet.html">Sbs2Packet</a>* thisPacket_);</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;</div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;    <span class="comment">//filtering</span></div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_sbs2_data_handler.html#ae44b39aab30a6caa6768dfabad5d9e1b">turnFilterOn</a>(<span class="keywordtype">int</span> fbandLow_, <span class="keywordtype">int</span> fbandHigh_, <span class="keywordtype">int</span> filterOrder_);</div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_sbs2_data_handler.html#a51df4501ee7314fe744acc098af30ee0">turnFilterOff</a>();</div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;</div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;    <span class="comment">//recording</span></div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_sbs2_data_handler.html#ae45981d8b359448d850bb122376bbbb5">startRecording</a>(QString user, QString description);</div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_sbs2_data_handler.html#a245b243ee7654d4e5bd506cd28a1d93b">stopRecording</a>();</div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_sbs2_data_handler.html#a79823cb73dcb66e0cf63d8892e906f75">insertIntoMetaFile</a>(QString event);</div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;</div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;    <span class="comment">//spectral analysis</span></div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_sbs2_data_handler.html#ae4782ab78c11ceeda69a51cf7aec8c00">turnChannelSpectrogramOn</a>(<span class="keywordtype">int</span> spectrogramChannelSamples_ = 128, <span class="keywordtype">int</span> spectrogramChannelLength_ = 128, <span class="keywordtype">int</span> spectrogramChannelDelta_ = 0);</div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_sbs2_data_handler.html#ac949d6a7a1003dd908419369d1de4f22">turnChannelSpectrogramOff</a>();</div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_sbs2_data_handler.html#a0c6604942e87bf2690e8e6d48273559c">setWindowType</a>(<a class="code" href="class_sbs2_spectrogram.html#a22265347883488b8385c83b67882d915">Sbs2Spectrogram::WindowType</a> windowType);</div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;</div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;    <span class="comment">//source reconstruction</span></div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_sbs2_data_handler.html#ae97f60fe14325dd1924968981e113b85">turnSourceReconstructionOn</a>(<span class="keywordtype">int</span> sourceReconstructionSamples_, <span class="keywordtype">int</span> sourceReconstructionDelta_, <span class="keywordtype">int</span> sourceReconstructionModelUpdateLength_, <span class="keywordtype">int</span> sourceReconstructionModelUpdateDelta_);</div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_sbs2_data_handler.html#ac07bef6af11d9dd0cc9eafdcd289cd38">turnSourceReconstructionOff</a>();</div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;</div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_sbs2_data_handler.html#a79efdae54416c8a45e46656e2a4e70db">turnSourceReconstructionPowerOn</a>(<span class="keywordtype">int</span> sourceReconstructionSamples_, <span class="keywordtype">int</span> sourceReconstructionDelta_, <span class="keywordtype">int</span> sourceReconstructionModelUpdateLength_, <span class="keywordtype">int</span> sourceReconstructionModelUpdateDelta_);</div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_sbs2_data_handler.html#a37e048db1cfb291c70a6f1bbc3814445">turnSourceReconstructionPowerOff</a>();</div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_sbs2_data_handler.html#a08378afb0dc485b61e6dd3d8df4725b7">setVerticesToExtract</a>(QVector&lt;int&gt;* verticesToExtract);</div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;</div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;    <span class="comment">//network</span></div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_sbs2_data_handler.html#a204bf82c68e7d8a4200fa9b29550c853">turnSendRawDataOn</a>(QString rawDataServerAddress_, <span class="keywordtype">int</span> rawDataPort_, <span class="keywordtype">int</span> rawDataSize_ = 32, <span class="keywordtype">int</span> rawDataQueueLength_ = 8);</div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_sbs2_data_handler.html#a2d141bc0fd854ab32d67c5bdc9d44e05">turnSendRawDataOff</a>();</div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_sbs2_data_handler.html#a3298d5245f738010bb9bfed5ca62c239">addRawDataHost</a>(QString address, <span class="keywordtype">int</span> port);</div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_sbs2_data_handler.html#ab19470d4bd133e153ca1e0096c29ce5f">removeRawDataHost</a>(QString address, <span class="keywordtype">int</span> port);</div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;</div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_sbs2_data_handler.html#a114c012077c938b091d572727ae0907c">sendMessage</a>(QString message, QString address, <span class="keywordtype">int</span> port);</div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_sbs2_data_handler.html#a114c012077c938b091d572727ae0907c">sendMessage</a>(QString message);</div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_sbs2_data_handler.html#a712a80f3cd44f014d80736ef9cf8c3ee">addMessageUdpOutputHost</a>(QString address, <span class="keywordtype">int</span> port);</div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_sbs2_data_handler.html#aa7ce95acbe8b3868b9878e1ed7a8ba8f">removeMessageUdpOutputHost</a>(QString address);</div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_sbs2_data_handler.html#a0059ed6e559e1dead35d68e0daf43d33">clearMessageUdpOutputHosts</a>();</div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;</div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_sbs2_data_handler.html#af5103e49754f879ffdc9cd137d67b69b">turnReceiveMessageOn</a>(QString address, <span class="keywordtype">int</span> port);</div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_sbs2_data_handler.html#a94414da810f2947f3868308818c14b1e">turnReceiveMessageOff</a>();</div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_sbs2_data_handler.html#addfa29ebc759d1fb5c2bf39f2fc5064c">readMessage</a>(QString data, QString sender, <span class="keywordtype">int</span> senderPort);</div>
<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;</div>
<div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;</div>
<div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;</div>
<div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;};</div>
<div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;</div>
<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;<span class="preprocessor">#endif // SBS2DATAHANDLER_H</span></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_6f90aaffdfd477d77d5f9c47c5b97c21.html">google_code_sbs2</a></li><li class="navelem"><a class="el" href="dir_448510a67227a50d4154c57452a2af8e.html">smartphonebrainscanner2</a></li><li class="navelem"><a class="el" href="dir_680a33f0116f58b5e253fc0d187f7737.html">core</a></li><li class="navelem"><a class="el" href="dir_05d5673300b00bd01b57a73e4ebb4749.html">src</a></li><li class="navelem"><b>sbs2datahandler.h</b></li>
    <li class="footer">Generated on Fri Jun 29 2012 14:30:34 for SmartphoneBrainScanner2 by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.1.1 </li>
  </ul>
</div>
</body>
</html>
